package com.ihome.excel.xlsx.entity;

public class ValidateRule {

	/**
	 * 数据类型设置
	 */
	private DataType dataType;
	
	/**
	 * 字符串大于某个长度
	 */
	private int strLengthGt;
	
	/**
	 * 字符串小于某个长度
	 */
	private int strLengthLt;
	
	/**
	 * 字符串等于某个长度
	 */
	private int strLengthEquals;
	
	/**
	 * 是否邮件
	 */
	private boolean isEmail = false;
	
	/**
	 * 是否身份证号
	 */
	private boolean isIdCard = false;
	
	/**
	 * 是否移动电话
	 */
	private boolean isMobile = false;	

    /**
	 * 是否座机号
	 */
	private boolean isSeatPhone = false;
	
	/**
     * 是否能为空
     */
    private boolean isNotNull = false;
	
	/**
	 * BigDecimal精度设置
	 */
	private int bigDecimalScale;
	
	/**
	 * BigDecimal舍入策略
	 */
	private int bigDecimalRoundMode;
	
	public boolean isMobile() {
        return isMobile;
    }

    public void setMobile(boolean isMobile) {
        this.isMobile = isMobile;
    }

    public DataType getDataType() {
        return dataType;
    }

    public void setDataType(DataType dataType) {
        this.dataType = dataType;
    }

    public int getStrLengthGt() {
        return strLengthGt;
    }

    public void setStrLengthGt(int strLengthGt) {
        this.strLengthGt = strLengthGt;
    }

    public int getStrLengthLt() {
        return strLengthLt;
    }

    public void setStrLengthLt(int strLengthLt) {
        this.strLengthLt = strLengthLt;
    }

    public int getStrLengthEquals() {
        return strLengthEquals;
    }

    public void setStrLengthEquals(int strLengthEquals) {
        this.strLengthEquals = strLengthEquals;
    }

    public boolean isEmail() {
        return isEmail;
    }

    public void setEmail(boolean isEmail) {
        this.isEmail = isEmail;
    }

    public boolean isIdCard() {
        return isIdCard;
    }

    public void setIdCard(boolean isIdCard) {
        this.isIdCard = isIdCard;
    }

    public boolean isSeatPhone() {
        return isSeatPhone;
    }

    public void setSeatPhone(boolean isSeatPhone) {
        this.isSeatPhone = isSeatPhone;
    }

    public boolean isNotNull() {
        return isNotNull;
    }

    public void setNotNull(boolean isNotNull) {
        this.isNotNull = isNotNull;
    }

    public int getBigDecimalScale() {
        return bigDecimalScale;
    }

    public void setBigDecimalScale(int bigDecimalScale) {
        this.bigDecimalScale = bigDecimalScale;
    }

    public int getBigDecimalRoundMode() {
        return bigDecimalRoundMode;
    }

    public void setBigDecimalRoundMode(int bigDecimalRoundMode) {
        this.bigDecimalRoundMode = bigDecimalRoundMode;
    }	
	
}
